# Make file for project dja_skel
# $Id:$

etags=ctags-exuberant
etags_options=-e -R --languages=python --exclude="__init__.py"
pypi_uploader=mv
pypi_url=/home/alex/repos/pypi
python=python
infordir=/home/alex/local/share/info


.PHONY: develop
develop:
	$(python) setup.py develop

.PHONY: dist
dist:
	$(python) setup.py sdist

.PHONY: tags
tags:
	$(etags) $(etags_options)

.PHONY: upload
upload: dist
	$(pypi_uploader) dist/* $(pypi_url)

# generació de documentació

.PHONY: info
info:
	make -C docs info

.PHONY: installinfo
installinfo: info
	cp doc/build/info/*.info $(infodir)
	cd $(infodir) && for i in *.info ; do install-info --info-dir=$(infodir) $$i ; done
